package dongshi.daddy.service;

import dongshi.daddy.pojo.Order;
import dongshi.daddy.repository.OrderRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderRepository orderRepository;

    @Override
    public Order insertOder(Order order) {
        return orderRepository.save(order);
    }

    @Override
    public void deleteAllInBatch() {
        orderRepository.deleteAllInBatch();
    }

}
